package com.disc.open189;


import com.disc.common.Constant;
import com.disc.util.BaseUtil;
import com.disc.util.HttpUtil;
import com.disc.util.JsUtil;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.util.ArrayList;
import java.util.List;

public class Open189PanService extends BaseClass {

   public String  getFileDownloadUrl(String fileid)  throws Exception
   {
      String url = Constant.TIANYI_FILE_LIST;
      List<NameValuePair> nvps = new ArrayList<>();
      nvps.add(new BasicNameValuePair("fileId",fileid));
      url += getEncodedUrl(nvps);
      return HttpUtil.createHttpGet(url,tianYiLogin.httpclient);
   }
   public String  getVideoDownloadUrl(String url)  throws Exception
   {
      return HttpUtil.createHttpGet(url,tianYiLogin.httpclient);
   }
}
